<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <!--  checkbox多选框-->
<!--  <input type="checkbox" value="篮球" v-model="hobbies">篮球-->
<!--  <input type="checkbox" value="足球" v-model="hobbies">足球-->
<!--  <input type="checkbox" value="乒乓球" v-model="hobbies">乒乓球-->
<!--  <input type="checkbox" value="羽毛球" v-model="hobbies">羽毛球-->
  <h2>宁的爱好是{{hobbies}}</h2>
  <label v-for="item in arguments" :for="item">
    <input type="checkbox" :value="item" v-model="hobbies" :id="item">{{item}}
  </label>
</div>
<script src="../vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      message: 'hello',
      isAgree: false,
      hobbies: [],
      arguments:['篮球','足球','羽毛球']
    }
  })
</script>
</body>
</html>
